<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
 console.log(day());
        function  day(){
            let time1=+new Date();
           let time2=+new Date("1998-02-10")
           let time3=time1-time2;
           let time=time3/1000;
           let d = parseInt(time / 60 / 60 / 24);
           return `已经生活了${d}天`
        }
    </script>
</body>
</html>